<?php
/**
 * Created by PhpStorm.
 * User: liuwupeng
 * Date: 2017/9/5
 * Time: 下午2:26
 */
namespace App\Api\Controller;

use App\ActivityOrder;
use Illuminate\Http\Request;

class ActivityOrderController extends BaseController{
    public function store(Request $request){
        $activityOrder=[
            'activity_id' => $request->get('aid'),
            'activity_name' => $request->get('aname'),
            'activity_price'=>$request->get('aprice'),
            'user_id'=>$request->get('uid'),
            'username' => $request->get('username'),
            'counts'=>$request->get('counts'),
            'phone'=>$request->get('phone'),
            'rules'=>$request->get('rules')
        ];
        ActivityOrder::create($activityOrder);
        return response([
            'success'=>1
        ]);
    }
}